{extend name="public/base" /}
{block name="pjax_container"}
<?php
    $titleTypeName = '订单详情';
?>
<style>
    tr>th,
    td {
        text-align: center;
    }



    .content-header>.breadcrumb>li {
        color: #999;
    }

    .content-header>.breadcrumb>.active {
        color: #666;
    }

    .content-header {
        height: 51px;

    }

    .btn-primary {
        background-color: #1890FF;
        color: #fff;
        border: none;
        border-radius: 6px !important;
        margin-left: 15px;
        padding: 5px 10px;
    }

    .box-primary {
        border-top-color: #ecf0f5 !important;
        border-top-width: 16px;

    }

    .btn-primary:hover {
        background-color: #1890FF;
        color: #fff;
        border: none;
        opacity: .9;
        border-radius: 6px !important;
    }

    .delete-one {
        background-color: ff4141 !important;
        margin-left: 15px;
        border-radius: 6px;
    }

    .sreachs {
        background-color: #1890FF;
        color: #fff;
        border: none;
        border-radius: 6px !important;
        margin-left: 15px;
        padding: 7px 15px;
    }

    .input-group {
        display: flex;
        flex-wrap: wrap;
    }

    .sreachs:hover {
        background-color: #1890FF;
        color: #fff;
        border: none;
        opacity: .8;
        border-radius: 6px !important;
        margin-left: 15px;
        padding: 7px 15px;
    }

    .form-group>label {
        height: 100%;
        line-height: 30px;
        margin-left: 10px;
    }

    .form-group>input {
        border: none;
        height: 100%;
        border-bottom: 1px solid #ccc;
    }

    .nav-tabs-custom {
        margin-top: 16px;
    }
</style>
<section class="content-header">
    <ol class="breadcrumb">
        <li>订单管理</li>
        <li>产品订单列表</li>
        <li class="active">{$titleTypeName}</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <form class="form-horizontal" method="POST" action="/{$Think.MODULE_NAME}/{$Think.CONTROLLER_NAME}/{$Think.ACTION_NAME}" onsubmit="return false" >
                <input type="hidden" name="id" value="{$info.id|default=0}" />
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        <li class="pull-right"><a href="javascript:history.back(-1)" class="btn btn-sm" style="padding:10px 2px;"><i class="fa fa-list"></i> 返回</a></li>
                    </ul>
                    <div class="tab-content">
                        {include file="form/input_isread" title="订单编号" name="order_number"/}
                        {include file="form/input_isread" title="用户账号" name="account"/}
                        {include file="form/input_isread" title="姓名" name="user_name"/}
                        {include file="form/input" title="联系电话" name="mobile"/}
                        <div class="form-group">
                            <label class="col-sm-2 control-label">产品信息</label>
                            <div class="col-sm-7">
                            {volist name="info.goods_list" id="v1"}
                                产品名称:{$v1.name}
                                产品数量:{$v1.goods_num}
                                产品型号:{$v1.goods_model}
                                产品单价:{$v1.price}<br/>
                            {/volist}
                            </div>
                        </div>
                        {include file="form/input_isread" title="订单支付金额" name="total_price"/}
                        {php}
                            if($info['pay_type'] == 1){
                                $pay_name = '支付宝';
                            }else{
                                $pay_name = '微信';
                            }
                        {/php}
                        <div class="form-group">
                            <label class="col-sm-2 control-label">订单支付方式</label>
                            <div class="col-sm-7">
                                <input class="form-control" name="" value="{$pay_name|default=''}" placeholder="订单支付方式" readonly="readonly">
                            </div>
                        </div>
                        {include file="form/input_textarea" title="收货地址" name="address"/}
                        {include file="form/input_textarea" title="备注" name="desc"/}
                        <div class="form-group">
                            <label class="col-sm-2 control-label">订单状态</label>
                            <div class="col-sm-7" style="height: 44px;line-height: 44px;">
                                {if condition="$info.status eq 0"}待付款{/if}
                                {if condition="$info.status eq 1"}待发货{/if}
                                {if condition="$info.status eq 2"}待收货{/if}
                                {if condition="$info.status eq 3"}订单完成{/if}
                            </div>
                        </div>
                    </div>
                    <div class="box-footer">
                        <div class="col-sm-2"></div>
                        <div class="col-sm-7">
                            <div class="btn-group pull-right">
                                <button type="submit" class="btn btn-info pull-right submits" data-loading-text="&lt;i class='fa fa-spinner fa-spin '&gt;&lt;/i&gt; 提交">提交</button>
                            </div>
                        </div>
                    </div>

                </div>
            </form>
        </div>
    </div>
</section>
<script type="application/javascript">
    $(document).ready(function () {
        /*ajax页面加载icheck，有该控件的页面才需要*/
        $(".select2").select2({language:"zh-CN"});

    })
</script>
{/block}
